#include "ctrlargsdialog.h"
#include "ui_ctrlargsdialog.h"

CtrlArgsDialog::CtrlArgsDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::CtrlArgsDialog)
{
    ui->setupUi(this);

    ui->spinBox_lineSize->setMinimum(0x10);
    ui->spinBox_groupSize->setMinimum(1);
}

CtrlArgsDialog::~CtrlArgsDialog()
{
    delete ui;
}

void CtrlArgsDialog::on_pushButton_clicked()
{
    emit sendArgs(ui->spinBox_lineSize->value(), ui->spinBox_groupSize->value() * 2);//字节是成双的
    close();
}
